package com.five.community.service;

import com.five.community.bean.Repair;
import com.five.community.bean.Village;
import com.five.community.bean.vo.RepairVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface RepairService {
    //查询报修表所有信息
    List<RepairVo> selectAll() throws Exception;

    //根据报修人名字查询
    List<RepairVo> selectByName(String name) throws Exception;

    //插入维修数据
    void insert(Repair repair) throws Exception;
    //根据Id查询报修信息

    Repair selectById(long id) throws Exception;
    //编辑修改报修数据
    void update(Repair repair) throws Exception;
    //删除报修数据根据Id
    void delete(long id)throws Exception;
    //获取分页信息
    PageInfo<RepairVo> getPageInfo(int pageNum, int pageSize) throws Exception;
}
